<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./ajax.js"></script>
    <script>
        ajax({
            url: "/ajax/day01/getData1.php",
            data: "msg=测试",
            method: "post",
            success: function(result) {
                console.log('success:', result);
            }
        });

        // https://wis.qq.com/weather/common?source=pc&weather_type=observe|forecast_1h|forecast_24h|index|alarm|limit|tips|rise&province=江苏省&city=南京市&county=
        // var url = "https://wis.qq.com/weather/common?source=pc&weather_type=observe|forecast_1h|forecast_24h|index|alarm|limit|tips|rise&province=江苏省&city=南京市&county=";
        // var xhr = new XMLHttpRequest();
        // xhr.onload = function(){
        //     if(xhr.status == 200){
        //         console.log('onload-responseText:', JSON.parse(xhr.responseText));
        //     }
        // };
        // xhr.open("post", url);
        // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
        // xhr.send();
    </script>
</head>
<body>
    
</body>
</html>